
package net.minecraft.src;

import java.util.List;

public abstract class Clans
{
	
	public Clans()
	{
		ReadClansFromFile();		
	}
	
	// We need to create a list of already made clans and check against it for 
	// in use.	
	public boolean RegisterClan(Clan clan)
	{
	  if(ClanNames.contains(clan.ClanName) || BadClanNames.contains(clan.ClanName))
	  {
		  return false;
	  }
	  else
	  {
		 Clans.add(clan);
		 ClanNames.add(clan.ClanName);
		 
		 //Update our file with new Clan name.
		 WriteClanToFile(clan);
		  
	   return true;
	  }
	}
	
	public boolean DeleteClan(Clan clan)
	{
		 
		return true;
	}
	
	//Add a specific Clan to the file
	public boolean WriteClanToFile(Clan clan)
	{
		
		return true;	   
	}
	
	public boolean RemoveClanFromFile(Clan clan)
	{
		return true;
	}
	//Read all clans 
	public boolean ReadClansFromFile()
	{
		return true;
	
	}	
	
	public List<Clan> Clans;
	public List<String> ClanNames;
	public List<Clan> NewClans;
	public List<String> BadClanNames;
	
}
